Skip to content
Discussion options

You must be logged in to vote

Hi @wdhowell84,

I reproduced this on v5 (AWS.Tools.CloudFront 5.0.255). It comes down to two things, both of which work on v5. v4 is now out of support, so downgrading is not a long-term option.

1. Understand what -Select returns by default

-Select controls a cmdlet's output. To simplify the common case, when a response has exactly one service property (ignoring common metadata like ETag, ContentLength, HttpStatusCode) the default is that property, so you get the useful object directly, otherwise the default is * (the whole response). This explains both symptoms you hit:

  • Update-CFDistribution returns only Distribution, so it defaults to -Select 'Distribution' and its output is the Distri…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@wdhowell84
Comment options

@wdhowell84
Comment options

Answer selected by wdhowell84
Comment options

You must be logged in to vote
2 replies
@wdhowell84
Comment options

@afroz429
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants