mammoth-salesclerk-61945
05/17/2022, 3:21 PMmanagedCluster("cluster-1") {
args {
identity {
type = ResourceIdentityType.SystemAssigned
}
servicePrincipalProfile {
clientId = "msi"
}
agentPoolProfiles {
name = "pool1"
count = 1
osType = OSType.Linux
osSKU = OSSKU.Ubuntu
vmSize = "standard_a2_v2"
mode = AgentPoolMode.System
}
}
opts {
protect = true
}
}
It looks like I'm just writing terraform. I'll probably have to modify this to support supplying both T
and Output<T>
just thought I'd share.powerful-room-57148
05/17/2022, 6:07 PM(BucketOwnershipControls. bucket-name
(build BucketOwnershipControlsArgs
:bucket (:id bucket)
:rule (build BucketOwnershipControlsRuleArgs
:object-ownership "BucketOwnerEnforced"))
(build CustomResourceOptions :parent bucket))
(build
is a macro I wrote to make using builders more concise.)mammoth-salesclerk-61945
05/17/2022, 6:21 PMBucketOwnershipControlsArgs
we were toying with the concept of lambda builders like such:
new Profile("blah", pb -> pb
.resourceGroupName(resourceGroup.getName())
.location("global")
.sku(sb -> sb.setName("name")) /// avoid referencing/importing Sku.Builder() since we can bind it in a lambda
);
powerful-room-57148
05/17/2022, 6:30 PMmammoth-salesclerk-61945
05/17/2022, 6:31 PMpowerful-room-57148
05/17/2022, 6:32 PMmammoth-salesclerk-61945
05/17/2022, 6:32 PMpowerful-room-57148
05/17/2022, 6:32 PM